package com.dh.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 党员/用户对象
 */
@Entity
@Table(name = "User")
public class User extends UserCommon {
    private String username; //用户名
    private String passwd; //密码

    private int accountRole; //角色
    private String joinPartyTime;//入党时间
    private String partyDuties;//党内职务
    private String partyOutDuties;//党外职务
    private String originalAgencyPhone;//原机构电话
    private String originalAgencyName;//原机构名称
    private String inflowTime;//流入时间
    private String introducer;//入党介绍人
    private String deptName;//入党介绍人
    private byte userType;//2:党员（普通用户角色）1:用户 （普通用户角色、管理员角色）

    private int admin;

    public int getAccountRole() {
        return accountRole;
    }

    public void setAccountRole(int accountRole) {
        this.accountRole = accountRole;
    }

    public String getInflowTime() {
        return inflowTime;
    }

    public void setInflowTime(String inflowTime) {
        this.inflowTime = inflowTime;
    }

    public String getIntroducer() {
        return introducer;
    }

    public void setIntroducer(String introducer) {
        this.introducer = introducer;
    }

    public String getJoinPartyTime() {
        return joinPartyTime;
    }

    public void setJoinPartyTime(String joinPartyTime) {
        this.joinPartyTime = joinPartyTime;
    }

    public String getOriginalAgencyName() {
        return originalAgencyName;
    }

    public void setOriginalAgencyName(String originalAgencyName) {
        this.originalAgencyName = originalAgencyName;
    }

    public String getOriginalAgencyPhone() {
        return originalAgencyPhone;
    }

    public void setOriginalAgencyPhone(String originalAgencyPhone) {
        this.originalAgencyPhone = originalAgencyPhone;
    }

    public String getPartyDuties() {
        return partyDuties;
    }

    public void setPartyDuties(String partyDuties) {
        this.partyDuties = partyDuties;
    }

    public String getPartyOutDuties() {
        return partyOutDuties;
    }

    public void setPartyOutDuties(String partyOutDuties) {
        this.partyOutDuties = partyOutDuties;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public byte getUserType() {
        return userType;
    }

    public void setUserType(byte userType) {
        this.userType = userType;
    }

    public int getAdmin() {
        return admin;
    }

    public void setAdmin(int admin) {
        this.admin = admin;
    }
}
